package com.mxl.user.controller;

import com.mxl.common.domain.Result;
import com.mxl.user.feign.OrderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mxl
 * @since 2024-06-11
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private OrderFeign orderFeign;

    @GetMapping("/selOrderByUserId")
    public Result selOrderByUserId(@RequestParam("id") Integer id){
       return Result.success(orderFeign.selOrderByUserId(id));
    }



}
